package com.entfrm.biz.it.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import com.entfrm.core.data.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author kyc
 * @date 2020-08-07 17:56:35
 * @description 资产信息对象 Property
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PropertyExcelVo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Excel(name = "id",isColumnHidden = true,needMerge = true)
    private Integer id;

    @Excel(name = "序号",needMerge = true)
    private Integer index;

    /**
     * 凯翼编号
     */
    @Excel(name = "凯翼编号",needMerge = true)
    private String cowinNum;

    /**
     * 股份编号
     */
    @Excel(name = "股份编号",needMerge = true)
    private String cheryNum;

    /**
     * SAP编号
     */
    @Excel(name = "SAP编号",needMerge = true)
    private String sapNum;

    /**
     * 购入时间
     */
    @Excel(name = "购入时间", width = 30, databaseFormat = "yyyy-MM-dd",needMerge = true)
    private Date buyTime;

    /**
     * 资产名称
     */
    @Excel(name = "资产名称",needMerge = true)
    private String name;

    /**
     * 资产分类id
     */
    private Integer categoryId;

    private String categoryIds;

    @Excel(name = "资产分类",needMerge = true)
    private String categoryName;

    /**
     * 资产配置
     */
    @Excel(name = "资产配置",needMerge = true)
    private String config;

    /**
     * 资产品牌
     */
    @Excel(name = "资产品牌",needMerge = true)
    private String brand;

    /**
     * 资产型号
     */
    @Excel(name = "资产型号",needMerge = true)
    private String modelNum;

    /**
     * 所属位置
     */
    @Excel(name = "所属位置",needMerge = true)
    private String location;

    /**
     * 资产描述
     */
    @Excel(name = "资产描述",needMerge = true)
    private String info;

    /**
     * 资产状态
     */
    @Excel(name = "资产状态",needMerge = true)
    private String status;

    /**
     * 使用记录列表
     */
    @ExcelCollection(name = "使用记录")
    private List<PropertyRecordExcelVo> recordExcelVoList;


}
